<extend name="Public/Common/base.html" />
<block name="main">
<!-- <css href="__PUBLIC__/assets/css/tp.css" />
<js href="__PUBLIC__/layer/layer.js" />
<css  href="__PUBLIC__/assets/css/amazeui.datetimepicker.css"/>
 <js href="__PUBLIC__/assets/js/amazeui.datetimepicker.min.js"/> 
 <js href="__PUBLIC__/assets/js/jquery.min.js"/>
 
 <js href="__PUBLIC__/assets/js/app.js"/> -->
<style>
.am-table{
	font-size:13px;
}
.am-time{
	width:60%;
	height:30px;
}
</style>

<table class="am-table am-table-compact am-table-centered am-scrollable-horizontal   am-table-bordered">  
    <thead>
        <tr>       
            <th>id</th>                       
            <th>姓名</th> 
            <th>出差时间</th> 
            <th>回来时间</th>
            <th>本月应出勤天数</th>
            <th>实际出勤天数</th>                          
            <th>出差天数</th> 
            <th>加班天数</th> 
            <th>请假天数</th>
            <th>迟到次数</th>       
            <th>状态</th>                             
          
        </tr>
    </thead>
    <tbody>
   
        <tr>
            <td colspan="12">{$year}/{$month}月</td>                     
        </tr>
     
      <foreach name="namelist" item="vv">    
       <tr>          
            <td>{$key+1}</td>          
            <td>{$vv.staff_name}</td>           
            <td>
              <if condition="$vv.taskstarttime eq '0000-00-00 00:00:00'">本月无出差<else/> {$vv.taskstarttime}</if>           
            </td> 
            <td>
             <if condition="$vv.taskstarttime eq '0000-00-00 00:00:00'">本月无出差<else/> 
              <if condition="$vv.taskendtime eq '0000-00-00 00:00:00'">不确定<else/>{$vv.taskendtime}</if>   
             </if>                 
            </td> 
             <td>{$t}</td>
             <td>
             
             <if condition="$vv.taskstarttime eq '0000-00-00 00:00:00'">{$t}<else/> 
             {$t+$vv.taskdate}
             </if>
             </td>
            <td>
             <if condition="$vv.taskstarttime eq '0000-00-00 00:00:00'">无<else/> 
             <if condition="$vv.taskdate eq '0'">不确定<else/>{$vv.taskdate}天</if>
            </if>
            </td> 
            <td>
            <if condition="$vv.taskstarttime eq '0000-00-00 00:00:00'">无<else/> 
            <if condition="$vv.taskadd eq '0'">不确定<else/>{$vv.taskadd}天</if>
            </if>
            </td> 
            
             <td>
           {$vv.taskleave}天            
            </td>   
            
           <td>
           {$vv.tasklate}次            
           </td>  
                    
            <td>
            <if condition="$vv.taskstarttime eq '0000-00-00 00:00:00'">在公司<else/> 
            <if condition="$vv.taskstatus eq '2'">出差中<else/>出差完毕</if>
             </if>
            </td>                                      
           
        </tr>
       
        </foreach>
      
     
    </tbody>
</table>
		 
	
	    
</block>
